package org.peoples.rooms;

import java.util.Date;

public class RoomProperties {
	
	public int ID;
	public String name;
	public String description;
	public Date creationDate;
	
	public RoomProperties() {
		
	}
	
	public boolean equals(Object obj) {
		if (obj == this)
			return true;
		
		if (! (obj instanceof RoomProperties))
			return false;
		
		RoomProperties temp_p = (RoomProperties) obj;
		String thisName = name.toLowerCase();
		String tempName = temp_p.name.toLowerCase();
		
		if (thisName.equals(tempName))
			return true;
		
		return false;
	}
	
	public int hashCode() {
		return name.hashCode();
	}
	
	public String toString() {
		return name;
	}
	
}
